package com.xxg.eurekaclient.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.security.web.authentication.logout.SecurityContextLogoutHandler;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;


@RestController
@RequestMapping("/user")
@RefreshScope
public class UserController {

    @Value("${profile}")
    private String foo;

    @RequestMapping(value = "/findAll",method = RequestMethod.GET)
    public String findAll(@RequestParam(value = "pageSize") int pageSize,
                           @RequestParam(value = "pageNum") int pageNum) {
        System.out.println("2");
        return foo;
    }

}
